package org.ftc.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "FTC_LOG")
public class FtcLog implements Serializable  {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2528841055618527064L;

	@Id 
	@Column(name = "LOG_SEQ", length = 50 )
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid2")
	private String logSeq; 
	
	@Column(name = "USERNAME", length = 50) 
	private String userName;
	
	//作業
	@Column(name = "AP_NAME", length = 10) 
	private String apName;
		
	//作業
	@Column(name = "ACTION", length = 30) 
	private String action;
	
	//物件class
	@Column(name = "OBJECT_NAME", length = 100) 
	private String objectName;
	
	//物件id
	@Column(name = "OBJECT_ID" , length = 50) 
	private String objectID;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "StartDateTime" ) 
	private Date startDateTime;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "EndDateTime" ) 
	private Date endDateTime;
	
	@Column(name = "URL", length = 250) 
	private String url;
	
	@Column(name = "IP_ADDRESS", length = 50) 
	private String ipAddress;
	
	@Column(name = "SESSION_ID", length = 50) 
	private String session;
	
//	@Lob
	@Column(name = "DETAIL") 
	private String detail;

	public String getLogSeq() {
		return logSeq;
	}

	public void setLogSeq(String logSeq) {
		this.logSeq = logSeq;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getApName() {
		return apName;
	}

	public void setApName(String apName) {
		this.apName = "NSTC2014";//apName;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getObjectName() {
		return objectName;
	}

	public void setObjectName(String objectName) {
		this.objectName = objectName;
	}

	public String getObjectID() {
		return objectID;
	}

	public void setObjectID(String objectID) {
		this.objectID = objectID;
	}

	public Date getStartDateTime() {
		return startDateTime;
	}

	public void setStartDateTime(Date startDateTime) {
		this.startDateTime = startDateTime;
	}

	public Date getEndDateTime() {
		return endDateTime;
	}

	public void setEndDateTime(Date endDateTime) {
		this.endDateTime = endDateTime;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getIpAddress() {
		return ipAddress;
	}

	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}

	public String getSession() {
		return session;
	}

	public void setSession(String session) {
		this.session = session;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}
	
	
	
	
}
